<script type="text/javascript" src="scripts/function.js"></script>
<!--[if IE 6]><script src="scripts/jquery.pngFix.pack.js">$(function(){
$(document).pngFix();});
</script><![endif]-->
<script type="text/javascript">
function Search(){
var keyword=$("#search_keyword").val();
	if($.trim(keyword)==''||$.trim(keyword)=='<?php echo $this->_var['language']['please_put_keyword']; ?>'){
		alert('<?php echo $this->_var['language']['keyword_is_empty']; ?>');
		$("#search_keyword").focus();
		return;
	}
	keyword=keyword.replace(/\'/gi,"");
	keyword=keyword.replace(/\"/gi,"");
	keyword=keyword.replace(/\?/gi,"");
	keyword=keyword.replace(/\%/gi,"");
	keyword=keyword.replace(/\./gi,"");
	keyword=keyword.replace(/\*/gi,"");
	window.location.href="search.php?keyword="+encodeURI(keyword);
}
</script>
<div id="header">
	<h1 id="logo"><a href="./"><img src="images/logo.png" /></a></h1>
	<div id="search">
	<input type="text" class="kw" id="search_keyword"  class="input" value="<?php echo $this->_var['language']['please_put_keyword']; ?>" onfocus="if (this.value == '<?php echo $this->_var['language']['please_put_keyword']; ?>') {this.value = '';}" onblur="if (this.value == '') {this.value = '<?php echo $this->_var['language']['please_put_keyword']; ?>';}"/>
	<input type="button" class="submit" id="search_submit" onclick="Search()" />
	</div>
        <div class="toplink">
            <a href="javascript:void(0)" onclick="setHomepage()">设为首页</a> | <a href="javascript:void(0)" onclick="add_favorite()">加入收藏</a>
        </div>
	<div class="notice"></div>
</div>

<div id="nav">
    <ul class="menu">
            <?php $_from = $this->_var['top_menu']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'menu');if (count($_from)):
    foreach ($_from AS $this->_var['menu']):
?>
            <li><a href="<?php echo $this->_var['menu']['link']; ?>"<?php if ($this->_var['menu']['target'] == 1): ?> target="_blank"<?php endif; ?><?php if ($this->_var['menu']['active']): ?> class="active"<?php endif; ?>><?php echo $this->_var['menu']['name']; ?></a></li>
            <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
    </ul>
    <div class="r">全国服务热线: <b>0756-8891160</b></div>
</div>

<?php if ($this->_var['banner']): ?>
<div class="banner"><img src="<?php echo $this->_var['banner']; ?>"></div>
<?php endif; ?>
